<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>色子</title>
    <style>
        /* 清除默认 */
        *{
            margin: 0;
            padding: 0;
        }
        /* 设置长方形宽高和背景颜色 */
        .box{
            display: flex;
            justify-content: space-around;
            width: 900px;
            height: 100px;
            border: 1px solid #000;
        }
        .s{
            width: 50px;
            height: 50px;
            padding: 10px;
            margin: 10px;
            border-radius: 10px;
            border: 1px solid #000;
        }
        /* 设置点 */
        .spot{
            width: 0;
            height: 0;
            border: 7px solid #000;
            border-radius: 50%;
        }
        /* 第一个色子 */
        .box1{
            display: flex;
            justify-content: center;
            align-items: center;
        }
        /* 第二个色子 */
        .box2{
            display: flex;
            flex-direction: column;
            justify-content: space-around;
            align-items: center;
        }
        /* 第三个色子 */
        .box3{
            display: flex;
            flex-direction: column;
            justify-content: space-around;
            align-items: center;
        }
        /* 设置自身位置 */
        .s1{
            align-self: flex-start;
        }
        .s2{
            align-self: flex-end;
        }
        /* 第四个色子 */
        .box4 {
            display: flex;
            justify-content: space-between;
        }
        .one{
            display: flex;
            flex-direction: column;
            justify-content: space-between;
        }
        .two{
            display: flex;
            flex-direction: column;
            justify-content: space-between;
        }
        /* 第五个色子 */
        .box5{
            display: flex;
            justify-content: space-between;
        }
        .d1{
            align-self: center;
        }
        /* 第六个色子 */
        .box6{
            display: flex;
            justify-content: space-between;
        }
        /* 纵向排列，贴边 */
        .six1,.six2,.six3{
            display: flex;
            flex-direction: column;
            justify-content: space-between;
        }
        /* 第七个色子 */
        .box7{
            display: flex;
            justify-content: space-between;

        }
         /* 纵向排列，贴边 */
        .stv1,.stv2,.stv3{
            display: flex;
            flex-direction: column;
            justify-content: space-between;
        }
        /* 第八个色子 */
        .box8{
            display: flex;
            justify-content: space-between;
        }
         /* 纵向排列，贴边 */
        .blocka,.blockb,.blockc{
            display: flex;
            flex-direction: column;
            justify-content: space-between;
        }
    </style>
</head>
<body>
    <!-- 大盒子 -->
    <div class="box">
        <!-- 第一 -->
        <div class="s box1">
            <div class="spot"></div>
        </div>
        <!-- 第二 -->
        <div class="s box2">
            <div class="spot"></div>
            <div class="spot"></div>
        </div>
        <!-- 第三 -->
        <div class="s box3">
            <div class="s1 spot"></div>
            <div class="spot"></div>
            <div class="s2 spot"></div>
        </div>
        <!-- 第四 -->
        <div class="s box4">
            <div class="one">
                <div class="spot"></div>
                <div class="spot"></div>
            </div>
            <div class="two">
                <div class="spot"></div>
                <div class="spot"></div>
            </div>
        </div>
        <!-- 第五 -->
        <div class="s box5">
            <div class="one">
                <div class="spot"></div>
                <div class="spot"></div>
            </div>
            <div class="d1 spot"></div>
            <div class="two">
                <div class="spot"></div>
                <div class="spot"></div>
            </div>
        </div>
        <!-- 第六 -->
        <div class="s box6">
            <div class="six1">
                <div class="spot"></div>
                <div class="spot"></div>
            </div>
            <div class="six2">
                <div class="spot"></div>
                <div class="spot"></div>
            </div>
            <div class="six3">
                <div class="spot"></div>
                <div class="spot"></div>
            </div>
        </div>
        <!-- 第七 -->
        <div class="s box7">
            <div class="stv1">
                <div class="spot"></div>
                <div class="spot"></div>
            </div>
            <div class="stv2">
                <div class="spot"></div>
                <div class="spot"></div>
                <div class="spot"></div>
            </div>
            <div class="stv3">
                <div class="spot"></div>
                <div class="spot"></div>
            </div>

        </div>
        <!-- 第八 -->
        <div class="s box8">
            <div class="blocka">
                <div class="spot"></div>
                <div class="spot"></div>
                <div class="spot"></div>
            </div>
            <div class="blockb">
                <div class="spot"></div>
                <div class="spot"></div>
            </div>
            <div class="blockc">
                <div class="spot"></div>
                <div class="spot"></div>
                <div class="spot"></div>
            </div>
        </div>
    </div>
</body>
</html>

  
    
